<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>SWIM</title>
<link href='http://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<%
	Object admin = request.getSession().getAttribute("admin");
	%>
	<div id="menu-wrapper">
		<div id="menu">
			<ul>
				<li><a href="index.jsp">Homepage</a></li>
				<li><a href="collaboration.jsp">Collaborations</a></li>
				<li><a href="friends.jsp">Friends</a></li>
				<li><a href="edit.jsp">Edit Profile</a></li>
				<li><a href="logout.jsp">Logout</a></li>
				
				<%if (admin != null && (Boolean) admin) {
				%>	
				<li><a href="newskillreq.jsp">Request Skill</a></li>
				<%} else {
					%>	
					<li><a href="newskill.jsp">Create Skill</a></li>
					<%}%>
				
			</ul>
		</div>
		<!-- end #menu -->
	</div>

<div id="wrapper">
	<div id="header-wrapper">
		<div id="header">
			<div id="logo">
				<h1><a href="#">SWIM</a></h1>
				<p>"A social network for friends needing or offering help"</p>
			</div>
		</div>
	</div>
	<!-- end #header -->
	<div id="page">
		<div id="page-bgtop">
			<div id="page-bgbtm">
				<div id="content">
					<div class="post">
						<h2 class="title">Advanced Search</h2>
						
						<div class="entry">
							Search for users using the form below.<br/> 
					
							<form method="post" action="results.jsp"> 
							<div>
								<br/>
								<input type="text" name="query" size=55 maxlength="40"/> 
								<br/>
								<br/>
								Filter <select name="type">
									<option value="city">by city</option>
									<option value="name">by name</option>
									<option value="skill">by skill</option>
								</select>
								among 
								<select name="among">
									<option value="friends">friends</option>
									<option value="users">all users</option>
								</select>
								<br/>
								<input type="reset"/> 
								<input type="submit" value="Search" style="margin-left: 30%;"/> 
							</div>
							</form>
						</div>
					</div>
					<div style="clear: both;">&nbsp;</div>
				</div>
				<!-- end #content -->
				<div id="sidebar">
					<ul>
						<li>
						</li>
						
					</ul>
				</div>
				<!-- end #sidebar -->
				<div style="clear: both;">&nbsp;</div>
			</div>
		</div>
	</div>
	<!-- end #page -->
</div>
<div id="footer">
	<p></p>
</div>
<!-- end #footer -->
</body>
</html>